package chapter01;

public class Test15_Prime {
    public static void main(String[] args) {
        //2-100之间的素数
        int i = 2;
        while(i<=100){
            int j = 2;
            boolean flag = false;
            while(j<i){
                if(i%j==0){
                    flag = true;
                    break;
                }
                j++;
            }
            if(!flag){
                System.out.print(i+"\t");
            }
            i++;
        }
    }
}
